package com.business.system.bean;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:03
 * @description:
 */
@Table(name = "GOODS")
public class GoodsBean extends ModelBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "GOODS_NO", type = Type.变长文本, description = "商品编号", size = 50)
	private String goodsNo;

	@Column(name = "GOODS_IMG", type = Type.变长文本, description = "商品图片", size = 50)
	private String goodsImg;

	@Column(name = "GOODS_NAME", type = Type.变长文本, description = "商品名称", size = 10)
	private String goodsName;

	@Column(name = "BRAND_ID", type = Type.变长文本, description = "品牌", size = 32)
	private String brandId;

	@Column(name = "GOODS_SPEC", type = Type.变长文本, description = "商品规格", size = 50)
	private String goodsSpec;

	@Column(name = "SALE_PRICE", type = Type.数字双精度型, description = "销售价")
	private double salePrice;

	@Column(name = "COST_PRICE", type = Type.数字双精度型, description = "成本价")
	private double costPrice;

	@Column(name = "IS_SHELF", type = Type.数字整型, description = "是否上架 0-已上架 1-未上架", size = 1)
	private int isShelf;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsNo() {
		return goodsNo;
	}

	public void setGoodsNo(String goodsNo) {
		this.goodsNo = goodsNo;
	}

	public String getGoodsImg() {
		return goodsImg;
	}

	public void setGoodsImg(String goodsImg) {
		this.goodsImg = goodsImg;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

    public String getGoodsSpec() {
        return goodsSpec;
    }

    public void setGoodsSpec(String goodsSpec) {
        this.goodsSpec = goodsSpec;
    }

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public double getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(double costPrice) {
        this.costPrice = costPrice;
    }

    public int getIsShelf() {
        return isShelf;
    }

    public void setIsShelf(int isShelf) {
        this.isShelf = isShelf;
    }
}